home *** CD-ROM | disk | FTP | other *** search
/ CD Fun House 1 / CD Fun House (Wayzata Technology).iso / •AdventureLand• / Adventures / HyperQuest 1.03 ••• / HyperQuest 1.03 еее / card_22580.txt < prev    next >
Text File  |  1990-10-02  |  7KB  |  317 lines

  1. -- card: 22580 from stack: in.03 –µ–µ–µ
  2. -- bmap block id: 10166
  3. -- flags: 0000
  4. -- background id: 2766
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on openCard
  8.   global chase
  9.   send cardOpened to background
  10.   if chase=2 then hortaChase
  11. end openCard
  12.  
  13. on move
  14.   global direction,pillarEat,chase,blasting,causeOfDeath
  15.   if chase=2 then
  16.     if direction<>"up" then
  17.       put "horta4" into causeOfDeath
  18.       visual wipe up slowly to gray
  19.       go to card id 3409
  20.       exit move
  21.     end if
  22.   end if
  23.   if direction = "west" then
  24.     go to card id 3186
  25.     exit move
  26.   end if
  27.   if direction = "up" then
  28.     go to card id 11722
  29.     exit move
  30.   end if
  31.   pass move
  32. end move
  33.  
  34.  
  35. on closeCard
  36.   set the cursor to 4
  37.   put "" into field 3
  38.   show card button hortaCover
  39. end closeCard
  40.  
  41. on take
  42.   global object,carried
  43.   -- remember to update carried if you do not pass take
  44.   pass take
  45. end take
  46.  
  47. on drop
  48.   global object,dropRoom,carried
  49.   -- remember to update carried if you do not pass drop
  50.   pass drop
  51. end drop
  52.  
  53. on use
  54.   global object,carried
  55.   -- update carried if use results in loss of object
  56.   pass use
  57. end use
  58.  
  59. on hortaChase
  60.   hide card button hortaCover
  61.   put "An angry Horta is hot on your heels!  Don't stop!" into field 3
  62. end HortaChase
  63.  
  64.  
  65.  
  66.  
  67. -- part 16 (button)
  68. -- low flags: 80
  69. -- high flags: 2000
  70. -- rect: left=122 top=230 right=266 bottom=156
  71. -- title width / last selected line: 0
  72. -- icon id / first selected line: 9301 / 9301
  73. -- text alignment: 1
  74. -- font id: 0
  75. -- text size: 12
  76. -- style flags: 0
  77. -- line height: 16
  78. -- part name: knife
  79. ----- HyperTalk script -----
  80. on mouseUp
  81.   global takeFlag,examFlag,object,cardID
  82.   put the name of the target into object
  83.   if takeFlag = true
  84.   then send take to card id cardID
  85. else put "a knife" into field 3
  86. put false into examFlag
  87. end mouseUp
  88.  
  89.  
  90.  
  91. -- part 17 (button)
  92. -- low flags: 80
  93. -- high flags: 2000
  94. -- rect: left=89 top=195 right=231 bottom=123
  95. -- title width / last selected line: 0
  96. -- icon id / first selected line: 1015 / 1015
  97. -- text alignment: 1
  98. -- font id: 0
  99. -- text size: 12
  100. -- style flags: 0
  101. -- line height: 16
  102. -- part name: nodule
  103. ----- HyperTalk script -----
  104. on mouseUp
  105.   global takeFlag,examFlag,object,cardID
  106.   put the name of the target into object
  107.   if takeFlag = true
  108.   then send take to card id cardID
  109. else put "a silicon sphere" into field 3
  110. put false into examFlag
  111. end mouseUp
  112.  
  113.  
  114.  
  115. -- part 18 (button)
  116. -- low flags: 80
  117. -- high flags: 2000
  118. -- rect: left=122 top=195 right=231 bottom=156
  119. -- title width / last selected line: 0
  120. -- icon id / first selected line: 14953 / 14953
  121. -- text alignment: 1
  122. -- font id: 0
  123. -- text size: 12
  124. -- style flags: 0
  125. -- line height: 16
  126. -- part name: ladder
  127. ----- HyperTalk script -----
  128. on mouseUp
  129.   global takeFlag,examFlag,object,cardID
  130.   put the name of the target into object
  131.   if takeFlag = true
  132.   then send take to card id cardID
  133. else put "a rope ladder" into field 3
  134. put false into examFlag
  135. end mouseUp
  136.  
  137.  
  138.  
  139. -- part 19 (button)
  140. -- low flags: 80
  141. -- high flags: 2000
  142. -- rect: left=122 top=160 right=196 bottom=156
  143. -- title width / last selected line: 0
  144. -- icon id / first selected line: 1019 / 1019
  145. -- text alignment: 1
  146. -- font id: 0
  147. -- text size: 12
  148. -- style flags: 0
  149. -- line height: 16
  150. -- part name: bomb
  151. ----- HyperTalk script -----
  152. on mouseUp
  153.   global takeFlag,examFlag,object,cardID
  154.   put the name of the target into object
  155.   if takeFlag = true
  156.   then send take to card id cardID
  157. else put "a time bomb" into field 3
  158. put false into examFlag
  159. end mouseUp
  160.  
  161.  
  162.  
  163. -- part 20 (button)
  164. -- low flags: 80
  165. -- high flags: 2000
  166. -- rect: left=89 top=160 right=196 bottom=123
  167. -- title width / last selected line: 0
  168. -- icon id / first selected line: 24317 / 24317
  169. -- text alignment: 1
  170. -- font id: 0
  171. -- text size: 12
  172. -- style flags: 0
  173. -- line height: 16
  174. -- part name: key
  175. ----- HyperTalk script -----
  176. on mouseUp
  177.   global takeFlag,examFlag,object,cardID
  178.   put the name of the target into object
  179.   if takeFlag = true
  180.   then send take to card id cardID
  181. else put "a key" into field 3
  182. put false into examFlag
  183. end mouseUp
  184.  
  185.  
  186.  
  187. -- part 21 (button)
  188. -- low flags: 80
  189. -- high flags: 2000
  190. -- rect: left=55 top=229 right=265 bottom=89
  191. -- title width / last selected line: 0
  192. -- icon id / first selected line: 7012 / 7012
  193. -- text alignment: 1
  194. -- font id: 0
  195. -- text size: 12
  196. -- style flags: 0
  197. -- line height: 16
  198. -- part name: gem
  199. ----- HyperTalk script -----
  200. on mouseUp
  201.   global takeFlag,examFlag,object,cardID
  202.   put the name of the target into object
  203.   if takeFlag = true
  204.   then send take to card id cardID
  205. else put "a glowing gem" into field 3
  206. put false into examFlag
  207. end mouseUp
  208.  
  209.  
  210.  
  211. -- part 22 (button)
  212. -- low flags: 80
  213. -- high flags: 2000
  214. -- rect: left=21 top=230 right=266 bottom=55
  215. -- title width / last selected line: 0
  216. -- icon id / first selected line: 23078 / 23078
  217. -- text alignment: 1
  218. -- font id: 0
  219. -- text size: 12
  220. -- style flags: 0
  221. -- line height: 16
  222. -- part name: orb
  223. ----- HyperTalk script -----
  224. on mouseUp
  225.   global takeFlag,examFlag,object,cardID
  226.   put the name of the target into object
  227.   if takeFlag = true
  228.   then send take to card id cardID
  229. else put "a crystal orb" into field 3
  230. put false into examFlag
  231. end mouseUp
  232.  
  233.  
  234.  
  235. -- part 33 (button)
  236. -- low flags: 00
  237. -- high flags: 0000
  238. -- rect: left=173 top=55 right=211 bottom=249
  239. -- title width / last selected line: 0
  240. -- icon id / first selected line: 0 / 0
  241. -- text alignment: 1
  242. -- font id: 0
  243. -- text size: 12
  244. -- style flags: 0
  245. -- line height: 16
  246. -- part name: 
  247. ----- HyperTalk script -----
  248. on mouseUp
  249.   global examFlag,direction,cardID,takeFlag
  250.   if examFlag then
  251.     put "a beautiful crystal pillar, easily climable." into field 3
  252.     put false into examFlag
  253.   else
  254.     if takeFlag then
  255.       beep
  256.       put "Feeling strong today, are we?  You can't take the pillar." into field 3
  257.     else
  258.       put "up" into direction
  259.       send move to card id cardID
  260.     end if
  261.   end if
  262. end mouseUp
  263.  
  264.  
  265.  
  266. -- part 34 (button)
  267. -- low flags: 00
  268. -- high flags: 0000
  269. -- rect: left=9 top=110 right=194 bottom=40
  270. -- title width / last selected line: 0
  271. -- icon id / first selected line: 0 / 0
  272. -- text alignment: 1
  273. -- font id: 0
  274. -- text size: 12
  275. -- style flags: 0
  276. -- line height: 16
  277. -- part name: 
  278. ----- HyperTalk script -----
  279. on mouseUp
  280.   global examFlag,direction,cardID
  281.   if examFlag then
  282.     put "a tunnel leading west." into field 3
  283.     put false into examFlag
  284.   else
  285.     put "west" into direction
  286.     send move to card id cardID
  287.   end if
  288. end mouseUp
  289.  
  290.  
  291.  
  292. -- part 41 (button)
  293. -- low flags: 00
  294. -- high flags: 0001
  295. -- rect: left=37 top=184 right=210 bottom=82
  296. -- title width / last selected line: 0
  297. -- icon id / first selected line: 0 / 0
  298. -- text alignment: 1
  299. -- font id: 0
  300. -- text size: 12
  301. -- style flags: 0
  302. -- line height: 16
  303. -- part name: hortaCover
  304.  
  305.  
  306. -- part contents for background part 25
  307. ----- text -----
  308. Pillar Room
  309. (looking north)
  310.  
  311. -- part contents for background part 24
  312. ----- text -----
  313. You are in a tall room with an exit tunnel leading west.  There is an impressive crystal pillar, about 15 feet tall, in the room.  The pillar has many crystalline projections which would make excellent handholds for easy climbing.
  314.  
  315. -- part contents for background part 36
  316. ----- text -----
  317. 1